from rest_framework import routers

from .views import DepartmentViewSets, PositionViewSets, RoleViewSets

urlpatterns = []

router = routers.SimpleRouter()  # 最简单的一个路由
router.register("department", DepartmentViewSets)

router.register("position", PositionViewSets)

router.register("role", RoleViewSets)

# 想要被Django认可的话还要加上下面这行代码
urlpatterns += router.urls
